import { createApp } from 'vue'
import router from './router'
import 'lib-flexible/flexible' // h5 rem
import App from './App.vue'

import 'vant/lib/index.css' // 全局引入样式
import './index.css'


import { NoticeBar, Swipe, SwipeItem, Lazyload, Divider, ImagePreview } from 'vant'

const app = createApp(App) // 创建实例
// 注册组件 begin
app.use(NoticeBar)
app.use(Swipe)
app.use(SwipeItem)
app.use(Lazyload)
app.use(Divider)
app.use(ImagePreview)
// 注册组件 end
app.use(router) // 引入路由

app.mount('#app')
